<template>
    <Demo @hello="showHello" msg="hello">
        <template v-slot:qwe>
            <span>尚硅谷</span>
        </template>
    </Demo>
</template>

<script>
    import Demo from "./components/Demo.vue"
    
export default {
    name:"App",
    components:{
        Demo,
    },
    setup(){
        function showHello(value){
            alert(`你触发了hello事件，我收到的参数是${value}`);
        }

        return{
            showHello,
        }
    }
}
</script>


